<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>EasyIO-GPRS-Framework: Clock</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="搜索" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Clock</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>组合类型</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__timer.html">rt_timer</a></td></tr>
<tr><td colspan="2"><h2>宏定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#gaf00c192dcbc7a949beebaec8e8bf9232">RT_TIMER_FLAG_DEACTIVATED</a>&nbsp;&nbsp;&nbsp;0x0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#ga174b5f60b760b5e421616ff17cb15c4b">RT_TIMER_FLAG_ACTIVATED</a>&nbsp;&nbsp;&nbsp;0x1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#gae9ef5d12543ac6b2113741ed503fc9c3">RT_TIMER_FLAG_ONE_SHOT</a>&nbsp;&nbsp;&nbsp;0x0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#ga52a9fd903938762a98408771bd139097">RT_TIMER_FLAG_PERIODIC</a>&nbsp;&nbsp;&nbsp;0x2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#gad750e1e3947c267e57be487dad3b4300">RT_TIMER_FLAG_HARD_TIMER</a>&nbsp;&nbsp;&nbsp;0x0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#ga0df6e547917d460610fd734ae84daca3">RT_TIMER_FLAG_SOFT_TIMER</a>&nbsp;&nbsp;&nbsp;0x4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#ga9b1d12b8471acff4c8f9eebb4216c7df">RT_TIMER_CTRL_SET_TIME</a>&nbsp;&nbsp;&nbsp;0x0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#ga2bbc0b4b2a4914c8eea4d1263e52ab85">RT_TIMER_CTRL_GET_TIME</a>&nbsp;&nbsp;&nbsp;0x1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#ga460a57e7d4fe4ea24772affaca3d62bc">RT_TIMER_CTRL_SET_ONESHOT</a>&nbsp;&nbsp;&nbsp;0x2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Clock.html#ga2e125a6714e6a5ff5756129cadbe3a7d">RT_TIMER_CTRL_SET_PERIODIC</a>&nbsp;&nbsp;&nbsp;0x3</td></tr>
<tr><td colspan="2"><h2>类型定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga32c381b041bcb69be117bcb32273775d"></a><!-- doxytag: member="Clock::rt_timer_t" ref="ga32c381b041bcb69be117bcb32273775d" args="" -->
typedef struct <a class="el" href="structrt__timer.html">rt_timer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_t</b></td></tr>
<tr><td colspan="2"><h2>函数</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae62f4fc2660b4b42ec0504ea971315bf"></a><!-- doxytag: member="Clock::rt_system_tick_init" ref="gae62f4fc2660b4b42ec0504ea971315bf" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_system_tick_init</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6e2aa36f263bddcddae01a91986fcdae"></a><!-- doxytag: member="Clock::rt_tick_get" ref="ga6e2aa36f263bddcddae01a91986fcdae" args="(void)" -->
<a class="el" href="group__BasicDef.html#ga66c400929925784dba020d671154978a">rt_tick_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_tick_get</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga77af135da16a0b9e1c4a351f4bee6dbd"></a><!-- doxytag: member="Clock::rt_tick_set" ref="ga77af135da16a0b9e1c4a351f4bee6dbd" args="(rt_tick_t tick)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_tick_set</b> (<a class="el" href="group__BasicDef.html#ga66c400929925784dba020d671154978a">rt_tick_t</a> tick)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga29337f93377626f651dd393e1bb608fb"></a><!-- doxytag: member="Clock::rt_tick_increase" ref="ga29337f93377626f651dd393e1bb608fb" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_tick_increase</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf9f1453af745c5feeb9a7f7f065f025b"></a><!-- doxytag: member="Clock::rt_tick_from_millisecond" ref="gaf9f1453af745c5feeb9a7f7f065f025b" args="(rt_uint32_t ms)" -->
<a class="el" href="group__BasicDef.html#ga66c400929925784dba020d671154978a">rt_tick_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_tick_from_millisecond</b> (<a class="el" href="group__BasicDef.html#ga909edcac80e5e3f93f63fcebc95922c7">rt_uint32_t</a> ms)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9f109e873cdcf963059e968cedb76c36"></a><!-- doxytag: member="Clock::rt_system_timer_init" ref="ga9f109e873cdcf963059e968cedb76c36" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_system_timer_init</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac5298e02b109e4885723f6116fb11814"></a><!-- doxytag: member="Clock::rt_system_timer_thread_init" ref="gac5298e02b109e4885723f6116fb11814" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_system_timer_thread_init</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga678d29f53307113da6b1578c9d3423cb"></a><!-- doxytag: member="Clock::rt_timer_init" ref="ga678d29f53307113da6b1578c9d3423cb" args="(rt_timer_t timer, const char *name, void(*timeout)(void *parameter), void *parameter, rt_tick_t time, rt_uint8_t flag)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_init</b> (<a class="el" href="structrt__timer.html">rt_timer_t</a> timer, const char *name, void(*timeout)(void *parameter), void *parameter, <a class="el" href="group__BasicDef.html#ga66c400929925784dba020d671154978a">rt_tick_t</a> time, <a class="el" href="group__BasicDef.html#ga585e2ad0fbab0f83817cb61373465df6">rt_uint8_t</a> flag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0d1aca4fc86f1dbd88945be8820793bb"></a><!-- doxytag: member="Clock::rt_timer_detach" ref="ga0d1aca4fc86f1dbd88945be8820793bb" args="(rt_timer_t timer)" -->
<a class="el" href="group__BasicDef.html#ga42df42aabf676f2a89f5af2208b79950">rt_err_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_detach</b> (<a class="el" href="structrt__timer.html">rt_timer_t</a> timer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9e6911989135de1b989dd7fe1b3543ce"></a><!-- doxytag: member="Clock::rt_timer_create" ref="ga9e6911989135de1b989dd7fe1b3543ce" args="(const char *name, void(*timeout)(void *parameter), void *parameter, rt_tick_t time, rt_uint8_t flag)" -->
<a class="el" href="structrt__timer.html">rt_timer_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_create</b> (const char *name, void(*timeout)(void *parameter), void *parameter, <a class="el" href="group__BasicDef.html#ga66c400929925784dba020d671154978a">rt_tick_t</a> time, <a class="el" href="group__BasicDef.html#ga585e2ad0fbab0f83817cb61373465df6">rt_uint8_t</a> flag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf6c147a1f25bd5ac9e72a142ab36a4ac"></a><!-- doxytag: member="Clock::rt_timer_delete" ref="gaf6c147a1f25bd5ac9e72a142ab36a4ac" args="(rt_timer_t timer)" -->
<a class="el" href="group__BasicDef.html#ga42df42aabf676f2a89f5af2208b79950">rt_err_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_delete</b> (<a class="el" href="structrt__timer.html">rt_timer_t</a> timer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3aeb8f8350b3a7403d8629231396c016"></a><!-- doxytag: member="Clock::rt_timer_start" ref="ga3aeb8f8350b3a7403d8629231396c016" args="(rt_timer_t timer)" -->
<a class="el" href="group__BasicDef.html#ga42df42aabf676f2a89f5af2208b79950">rt_err_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_start</b> (<a class="el" href="structrt__timer.html">rt_timer_t</a> timer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaaef9923c8b90ede02e12826c58c6f8a2"></a><!-- doxytag: member="Clock::rt_timer_stop" ref="gaaef9923c8b90ede02e12826c58c6f8a2" args="(rt_timer_t timer)" -->
<a class="el" href="group__BasicDef.html#ga42df42aabf676f2a89f5af2208b79950">rt_err_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_stop</b> (<a class="el" href="structrt__timer.html">rt_timer_t</a> timer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4f59e029dbca9de4db8821a45a0aaf53"></a><!-- doxytag: member="Clock::rt_timer_control" ref="ga4f59e029dbca9de4db8821a45a0aaf53" args="(rt_timer_t timer, rt_uint8_t cmd, void *arg)" -->
<a class="el" href="group__BasicDef.html#ga42df42aabf676f2a89f5af2208b79950">rt_err_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_control</b> (<a class="el" href="structrt__timer.html">rt_timer_t</a> timer, <a class="el" href="group__BasicDef.html#ga585e2ad0fbab0f83817cb61373465df6">rt_uint8_t</a> cmd, void *arg)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga51af0ff7d55ff298adfb87d276d0d678"></a><!-- doxytag: member="Clock::rt_timer_next_timeout_tick" ref="ga51af0ff7d55ff298adfb87d276d0d678" args="(void)" -->
<a class="el" href="group__BasicDef.html#ga66c400929925784dba020d671154978a">rt_tick_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_next_timeout_tick</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3a29a70b401aa9d5c5dbb7269fd0ac57"></a><!-- doxytag: member="Clock::rt_timer_check" ref="ga3a29a70b401aa9d5c5dbb7269fd0ac57" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>rt_timer_check</b> (void)</td></tr>
</table>
<hr/><h2>宏定义文档</h2>
<a class="anchor" id="ga2bbc0b4b2a4914c8eea4d1263e52ab85"></a><!-- doxytag: member="rtdef.h::RT_TIMER_CTRL_GET_TIME" ref="ga2bbc0b4b2a4914c8eea4d1263e52ab85" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_CTRL_GET_TIME&nbsp;&nbsp;&nbsp;0x1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>get timer control command </p>

</div>
</div>
<a class="anchor" id="ga460a57e7d4fe4ea24772affaca3d62bc"></a><!-- doxytag: member="rtdef.h::RT_TIMER_CTRL_SET_ONESHOT" ref="ga460a57e7d4fe4ea24772affaca3d62bc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_CTRL_SET_ONESHOT&nbsp;&nbsp;&nbsp;0x2</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>change timer to one shot </p>

</div>
</div>
<a class="anchor" id="ga2e125a6714e6a5ff5756129cadbe3a7d"></a><!-- doxytag: member="rtdef.h::RT_TIMER_CTRL_SET_PERIODIC" ref="ga2e125a6714e6a5ff5756129cadbe3a7d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_CTRL_SET_PERIODIC&nbsp;&nbsp;&nbsp;0x3</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>change timer to periodic </p>

</div>
</div>
<a class="anchor" id="ga9b1d12b8471acff4c8f9eebb4216c7df"></a><!-- doxytag: member="rtdef.h::RT_TIMER_CTRL_SET_TIME" ref="ga9b1d12b8471acff4c8f9eebb4216c7df" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_CTRL_SET_TIME&nbsp;&nbsp;&nbsp;0x0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>set timer control command </p>

</div>
</div>
<a class="anchor" id="ga174b5f60b760b5e421616ff17cb15c4b"></a><!-- doxytag: member="rtdef.h::RT_TIMER_FLAG_ACTIVATED" ref="ga174b5f60b760b5e421616ff17cb15c4b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_FLAG_ACTIVATED&nbsp;&nbsp;&nbsp;0x1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>timer is active </p>

</div>
</div>
<a class="anchor" id="gaf00c192dcbc7a949beebaec8e8bf9232"></a><!-- doxytag: member="rtdef.h::RT_TIMER_FLAG_DEACTIVATED" ref="gaf00c192dcbc7a949beebaec8e8bf9232" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_FLAG_DEACTIVATED&nbsp;&nbsp;&nbsp;0x0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>clock &amp; timer macros timer is deactive </p>

</div>
</div>
<a class="anchor" id="gad750e1e3947c267e57be487dad3b4300"></a><!-- doxytag: member="rtdef.h::RT_TIMER_FLAG_HARD_TIMER" ref="gad750e1e3947c267e57be487dad3b4300" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_FLAG_HARD_TIMER&nbsp;&nbsp;&nbsp;0x0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>hard timer,the timer's callback function will be called in tick isr. </p>

</div>
</div>
<a class="anchor" id="gae9ef5d12543ac6b2113741ed503fc9c3"></a><!-- doxytag: member="rtdef.h::RT_TIMER_FLAG_ONE_SHOT" ref="gae9ef5d12543ac6b2113741ed503fc9c3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_FLAG_ONE_SHOT&nbsp;&nbsp;&nbsp;0x0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>one shot timer </p>

</div>
</div>
<a class="anchor" id="ga52a9fd903938762a98408771bd139097"></a><!-- doxytag: member="rtdef.h::RT_TIMER_FLAG_PERIODIC" ref="ga52a9fd903938762a98408771bd139097" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_FLAG_PERIODIC&nbsp;&nbsp;&nbsp;0x2</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>periodic timer </p>

</div>
</div>
<a class="anchor" id="ga0df6e547917d460610fd734ae84daca3"></a><!-- doxytag: member="rtdef.h::RT_TIMER_FLAG_SOFT_TIMER" ref="ga0df6e547917d460610fd734ae84daca3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RT_TIMER_FLAG_SOFT_TIMER&nbsp;&nbsp;&nbsp;0x4</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>soft timer,the timer's callback function will be called in timer thread. </p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated at Thu Dec 26 21:32:02 2013 for EasyIO-GPRS-Framework by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
